home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 July / EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso / lightwave / lwmlist / 96.lightwave-0208 / 000045_lightwave@garcia.com _Wed Dec 6 21:22:00 1995.msg < prev    next >
Internet Message Format  |  1995-12-14  |  2KB

  1. Received: from relay2.UU.NET (relay2.UU.NET [192.48.96.7]) by keeper.albany.net (8.7.1/8.7.1) with ESMTP id VAA04254 for <dwarner@albany.net>; Wed, 6 Dec 1995 21:21:55 -0500 (EST)
  2. Received: from garcia.com by relay2.UU.NET with SMTP 
  3.     id QQztad05259; Wed, 6 Dec 1995 20:57:45 -0500 (EST)
  4. Received: from  (localhost) by garcia.com (5.x/SMI-SVR4)
  5.     id AA04099; Wed, 6 Dec 1995 20:57:56 -0500
  6. Date: Wed, 6 Dec 1995 20:57:56 -0500
  7. Errors-To: dwarner@albany.net
  8. Message-Id: <199512062328.SAA29698@keeper.albany.net>
  9. Errors-To: dwarner@albany.net
  10. Reply-To: lightwave@garcia.com
  11. Originator: lightwave@garcia.com
  12. Sender: lightwave@garcia.com
  13. Precedence: bulk
  14. From: David Warner <dwarner@albany.net>
  15. To: Multiple recipients of list <lightwave@garcia.com>
  16. Subject: Lightwave Mailing List: Dialog Box in Windows
  17. X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
  18. Status: RO
  19. X-Status: 
  20.  
  21.  
  22. > Mark Fletcher (markf@cts.com)
  23. > Tue, 5 Dec 1995 21:10:56 -0800 (PST)
  24.  
  25. > Hi All,
  26. > I'm writing a layout plugin in Windows NT 3.51 and I'm trying to get
  27. > a dialog
  28. > box up for the interface. I am using Visual C++ 2.0. I've set up the
  29. > resource file with a dialog box and am using the code I've gotten
  30. > from
  31. > this list:
  32. > hdi = global( "Host Display Info", GFUSE_TRANSIENT );
  33. > hinst = GetModuleHandle( "myplugin.p" );
  34. > DialogBox( hinst, "DialogName", hdi->window, DialogProc );
  35. > For some reason I have to cast the DialogProc pointer in the
  36. > DialogBox function call to (FARPROC) in order for it to compile
  37. > (DialogProc is prototyped as per the manual). And the dialog never
  38. > pops up. The DialogBox call returns -1, which indicates failure.
  39. > But I don't know why it's failing or what I'm doing wrong. This is
  40. > the first Windows app I've written(I'm from SGI/Motif land), so I
  41. > wouldn't be surprised if I'm doing something stooopid. I have
  42. > read every manual I could get my hands on.
  43. > Could some kind soul point out the error in my code?
  44. > Thanks,
  45. > Mark
  46. >
  47.